package com.example.backend.mapper;

import com.example.backend.entity.Port;
import com.example.backend.entity.Company;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface PortMapper {
    int insert(Port port);
    Port selectById(Long id);
    List<Port> selectAll();
    int update(Port port);
    int deleteById(@Param("id") Long id);
    List<Company> selectCompaniesByPortId(Long portId);
    int insertPortCompany(@Param("portId") Long portId, @Param("companyId") Long companyId);
    int deletePortCompany(@Param("portId") Long portId, @Param("companyId") Long companyId);
} 